package com.learner.pojo.course;

import lombok.Data;
import lombok.ToString;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Proxy;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @author ice2020x
 * @Date: 2023/3/22
 * @Description: 课程计划
 **/
@Data
@ToString
@Entity
@Table(name = "course_plan")
@GenericGenerator(name = "jpa-uuid", strategy = "uuid")
@EntityListeners(AuditingEntityListener.class)
public class CoursePlan implements Serializable {
    private static final long serialVersionUID = -1L;
    @Id
    @GeneratedValue(generator = "jpa-uuid")
    @Column(length = 32)
    private String id;
    private String pname;

    public CoursePlan() {
    }
    @Column(name = "parent_id")
    private String parentId;
    private String grade;
    private String description;
    @Column(name = "course_id")
    private String courseId;
    private String status;
    private Integer orderby;
    private Double timelength;
    @Column(name = "trylearn")
    private String tryLearn;

    @CreatedDate
    @Column(name = "gmt_create")
    private Date gmtCreate;

    /**
     * 修改时间
     */
    @LastModifiedDate
    @Column(name = "gmt_modified")
    private Date gmtModified;
}
